<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import = "java.sql.*" %>
<%@ page import = "java.io.*" %>
<%@ page import = "java.text.SimpleDateFormat" %>
<%@ page import = "java.util.Date" %>
<%@ page import = "java.util.*"%>
<%@ page import = "com.wsu.search.tools.Tools" %>


<% 
Calendar cal = Calendar.getInstance();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat formatter2 = new SimpleDateFormat("E");
String now = formatter.format(cal.getTime());
String week = formatter2.format(cal.getTime());
int hour = Tools.isNumber(now.substring(11,13));

RequestDispatcher rd = null;
//手机web版众筹首页
//rd = request.getRequestDispatcher("/cgi/mk_mb_index.jsp");
//rd.include(request, response);
/*
if(hour==8 || hour==10 || hour==13 || hour==17){
	rd = request.getRequestDispatcher("/cgi/mkindex.jsp");
	rd.include(request, response);
}
*/
//PCweb版众筹首页
if(hour==8 || hour==10 || hour==13 || hour==17){
	//rd = request.getRequestDispatcher("/cgi/mkindex.jsp");
	//rd.include(request, response);
}
/* 
//白条首页
if(hour==8 || hour==11 || hour==16 || hour==18){
	rd = request.getRequestDispatcher("/coupon/list.jsp?v=cc&r=");
	rd.include(request, response);
	
	rd = request.getRequestDispatcher("/shop/list.jsp?v=cc&r=");
	rd.include(request, response);
}
//期货首页
if(hour==8 || hour==14 ){
	rd = request.getRequestDispatcher("/cgi/mklist_tj.jsp");
	rd.include(request, response);
}
//排名首页
if(hour>=7 && hour<= 23 ){
	rd = request.getRequestDispatcher("/comp/upshop.jsp");
	rd.include(request, response);
} 
*/

System.out.println("定时器:"+now);
%>